﻿@model SoftHotel.Models.Ambiente

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Modificar Ambiente</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm())
{
    
    <p>
    &nbsp;
    </p>
    
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Modificar Ambiente</legend>

    @Html.HiddenFor(model => model.idAmbiente)

    <table id="MainContent_Table1" rules="none" style="border-color: Black; width: 900px; margin-bottom: 0px;">
	<tbody><tr>
		<td style="width: 20px;"></td>
		<td style="font-weight: bold; width: 220px;" align="">@Html.LabelFor(model => model.idSede)</td>
		<td>
			 <div class="editor-field">
                @Html.DropDownList("idSede", String.Empty)
                @Html.ValidationMessageFor(model => model.idSede)
            </div>
		</td>
		<td style="font-weight: bold; width: 220px;">@Html.LabelFor(model => model.nombre)</td>
		<td>
			<div class="editor-field">
                @Html.TextBoxFor(model => model.nombre)
                @Html.ValidationMessageFor(model => model.nombre)
            </div>
		</td>
	</tr><tr>
		<td style="width: 20px;"></td>
		<td style="font-weight: bold;">@Html.LabelFor(model => model.tipoAmbiente)</td>
		<td>
			<div class="editor-field">
                @Html.DropDownList("tipoAmbiente", String.Empty)
                @Html.ValidationMessageFor(model => model.tipoAmbiente)
            </div>
		</td>
		<td style="font-weight: bold;">@Html.LabelFor(model => model.piso)</td>
		<td>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.piso)
                @Html.ValidationMessageFor(model => model.piso)
            </div>
        </td>	
    </tr><tr>
		<td style="width: 20px;"></td>
		<td style="font-weight: bold;">@Html.LabelFor(model => model.capacidad)</td>
		<td>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.capacidad)
                @Html.ValidationMessageFor(model => model.capacidad)
            </div>
        </td>
		<td style="font-weight: bold;">@Html.LabelFor(model => model.descripcion)</td>	
		<td>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.descripcion)
                @Html.ValidationMessageFor(model => model.descripcion)
            </div>
        </td>
        </tr><tr>
		<td style="width: 20px;"></td>
		<td style="font-weight: bold;">@Html.LabelFor(model => model.estado)</td>
		<td>
            <div class="editor-field">
                @Html.DropDownList("estado", String.Empty)
                @Html.ValidationMessageFor(model => model.estado)
            </div>
        </td>
</tbody></table>
           <p>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="submit" value="Guardar"/>
        </p>
        </fieldset>
}

<div>
    @Html.ActionLink("Regresar", "Index")
</div>

